<?php

namespace App\Http\Models\member;

use App\Http\Models\RequestValidator;

/**
 * 用户验证
 * @author Jinfeihu
 * 
 */
class MembersFrom extends RequestValidator {

    public function authorize() {
        return true;
    }

    public function rules() {
        return [
            'username' => 'required',
            'password' => "required"
        ];
    }

    public function messages() {
        return [
            'username.required' => "用户名不能为空",
            'password.required' => "密码不能为空",
        ];
    }
        
    }
